scala_library(
    sources = ["*.scala"],
    compiler_option_sets = ["fatal_warnings"],
    platform = "java8",
    provides = scala_artifact(
        org = "com.twitter.tweetypie",
        name = "util",
        repo = artifactory,
    ),
    strict_deps = True,
    tags = ["bazel-compatible"],
    dependencies = [
        "//:scala-reflect",
        "3rdparty/jvm/commons-codec",
        "3rdparty/jvm/org/apache/thrift:libthrift",
        "finagle/finagle-core/src/main",
        "mediaservices/commons/src/main/thrift:thrift-scala",
        "scrooge/scrooge-serializer/src/main/scala",
        "tweetypie/servo/repo",
        "tweetypie/servo/util",
        "tweetypie/servo/util/src/main/scala:exception",
        "src/scala/com/twitter/takedown/util",
        "src/thrift/com/twitter/dataproducts:enrichments_profilegeo-scala",
        "src/thrift/com/twitter/escherbird:media-annotation-structs-scala",
        "src/thrift/com/twitter/expandodo:cards-scala",
        "src/thrift/com/twitter/gizmoduck:thrift-scala",
        "src/thrift/com/twitter/servo:servo-exception-scala",
        "src/thrift/com/twitter/spam/rtf:safety-label-scala",
        "tweetypie/common/src/thrift/com/twitter/tweetypie:deprecated-scala",
        "tweetypie/common/src/thrift/com/twitter/tweetypie:service-scala",
        "tweetypie/common/src/thrift/com/twitter/tweetypie:transient_context-scala",
        "tweetypie/common/src/thrift/com/twitter/tweetypie:tweet-scala",
        "stitch/stitch-core",
        "tweet-util",
        "util/util-core:scala",
    ],
)

scala_library(
    name = "EditControlUtil",
    sources = [
        "EditControlUtil.scala",
        "package.scala",
    ],
    compiler_option_sets = ["fatal_warnings"],
    platform = "java8",
    provides = scala_artifact(
        org = "com.twitter.tweetypie",
        name = "util-EditControlUtil",
        repo = artifactory,
    ),
    strict_deps = True,
    tags = ["bazel-compatible"],
    dependencies = [
        "//:scala-reflect",
        "3rdparty/jvm/commons-codec",
        "3rdparty/jvm/org/apache/thrift:libthrift",
        "finagle/finagle-core/src/main",
        "mediaservices/commons/src/main/thrift:thrift-scala",
        "scrooge/scrooge-serializer/src/main/scala",
        "tweetypie/servo/util/src/main/scala:exception",
        "src/thrift/com/twitter/dataproducts:enrichments_profilegeo-scala",
        "src/thrift/com/twitter/escherbird:media-annotation-structs-scala",
        "src/thrift/com/twitter/expandodo:cards-scala",
        "src/thrift/com/twitter/gizmoduck:thrift-scala",
        "src/thrift/com/twitter/servo:servo-exception-scala",
        "src/thrift/com/twitter/spam/rtf:safety-label-scala",
        "tweetypie/common/src/thrift/com/twitter/tweetypie:deprecated-scala",
        "tweetypie/common/src/thrift/com/twitter/tweetypie:service-scala",
        "tweetypie/common/src/thrift/com/twitter/tweetypie:transient_context-scala",
        "tweetypie/common/src/thrift/com/twitter/tweetypie:tweet-scala",
        "stitch/stitch-core",
        "tweet-util",
        "util/util-core:scala",
    ],
)
